<?php
 session_start();
 if(isset($_SESSION['username'])){
 	
header("content-type:text/html;charset=utf-8");
include "../config/mysql.php";
 $id=$_GET["id"];
 echo $id;

$tr=$pdo->exec("delete from article_content where id='$id'");

if($tr){
	header("refresh:1;url=../new.php");
   	print('删除成功，请稍等...<br>');
}else{
	header("refresh:1;url=../new.php");
   	print('删除失败,正在返回上一页,请稍等...<br>');
}

}else{
	header("Location:../log.php");
      exit();
}

?>